package com.mytijian.runtime.resolver;

import java.util.Map;

import org.springframework.util.StringUtils;

import com.mytijian.runtime.model.param.AliHealthCommonParam;

public class AliHealthRequestParamResolver extends AliRequestParamResolver<AliHealthCommonParam> {

	@Override
	public AliHealthCommonParam customResolver(Map<String, Object> reqParams) {
		AliHealthCommonParam param = new AliHealthCommonParam(reqParams);
		if (!StringUtils.isEmpty(reqParams.get("app_key"))) {
			param.setAppKey(String.valueOf(reqParams.get("app_key")));
		}

		return param;
	}

}
